<route lang="json5">
{
  layout: 'default',
  style: {
    navigationBarTitleText: '视频预览',
    navigationStyle: 'custom',
  },
}
</route>
<template>
  <th-page-box :tabBar="false">
    <template #inner>
      <view>
        <video id="myVideo" class="video-content" autoplay :src="src"></video>
      </view>
    </template>
  </th-page-box>
</template>

<script>
export default {
  name: 'PreviewVideo',
  components: {},
  data() {
    return {
      src: '',
    };
  },
  onLoad(options) {
    if (options.src) {
      this.src = decodeURIComponent(options.src);
    }
  },
  methods: {},
};
</script>

<style scoped lang="scss">
.video-content {
  width: 100vw;
  height: 100vh;
}
</style>
